// var wxPano = requirePlugin("wxPano")
const HttpUtils = require('../../utils/HttpUtils')
const app = getApp()
Page({
  data: {
   ok:false,
   url:[]
  },
  getVideo(){
wx.request({
  url: HttpUtils.URL_VR,
  method:'POST',
  success:(res)=>{
    this.setData({
      url:res.data.data
    })
  }
})
  },
  onReady: function () {
  this.getVideo()
    let that = this
    wx.showModal({
      title: '提示',
      content: 'VR功能暂未开放，敬请期待',
      complete: (res) => {
        if (res.cancel) {
          that.setData({
            ok:true
          })
        }
    
        if (res.confirm) {
          that.setData({
            ok:true
          })
        }
      }
    })

  }
   
})